package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.CashRedCategoryMapper;
import com.hcb.micro.dto.CashRedCategory;
import com.hcb.micro.service.ICashRedCategoryService;

@Service("CashRedCategoryService")
public class CashRedCategoryServiceImpl implements ICashRedCategoryService {

	@Autowired
	CashRedCategoryMapper crcm;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return crcm.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(CashRedCategory record) {
		return crcm.insert(record);
	}

	@Override
	public int insertSelective(CashRedCategory record) {
		return crcm.insertSelective(record);
	}

	@Override
	public CashRedCategory selectByPrimaryKey(Integer id) {
		return crcm.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(CashRedCategory record) {
		return crcm.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(CashRedCategory record) {
		return crcm.updateByPrimaryKey(record);
	}

	@Override
	public List<CashRedCategory> selectByCashRedId(Integer cashRedId) {
		return crcm.selectByCashRedId(cashRedId);
	}

	@Override
	public CashRedCategory selectByCashRedIdAndCategoryId(Map<String, Object> para) {
		return crcm.selectByCashRedIdAndCategoryId(para);
	}

}
